package com.qijian.flowable.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 流程矩阵字段对象 t_flowable_matrix_field
 *
 * @author qijian
 * @date 2022-02-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("t_flowable_matrix_field")
public class MatrixField extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 字段id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "字段id")
    @TableId
    private Long fieldId;

    /**
     * 矩阵id
     */
//    @Excel(name = "矩阵id")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "矩阵id")
    private Long matrixId;

    /**
     * 名称
     */
    @Excel(name = "字段名称")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 显示名
     */
    @Excel(name = "字段显示名 ")
    @ApiModelProperty(value = "显示名 ")
    private String label;

    /**
     * 字段名
     */
//    @Excel(name = "字段名")
    @ApiModelProperty(value = "字段名")
    private String fieldName;

    /**
     * 类型（1条件2取值）
     */
    @Excel(name = "字段类型", readConverterExp = "1=条件,2=取值")
    @ApiModelProperty(value = "类型（1条件2取值）")
    private Long type;

}
